package dialogview;

import bo.DepartmentsBO;
import bo.DesignationBO;
import bo.EmployeeBO;
import bo.SectionBO;
import comboboxview.DepartmentCbView;
import comboboxview.DesignationCbview;
import comboboxview.SectionCbView;
import data.Departments;
import data.Designation;
import data.Employees;
import data.Sections;
import java.util.List;
import javax.swing.JOptionPane;
import tableview.EmployeeTableView;
import view.ManageEmployee;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Hùng
 */
public class EmployeeDialog extends javax.swing.JDialog {

    /**
     * Creates new form employeeDailog
     */
    public EmployeeDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        List<Departments> ldept = new DepartmentsBO().ShowAlldepartment();
        DepartmentCbView model1 = new DepartmentCbView(ldept);
        cbNumberDept.setModel(model1);
        List<Designation> lDesign = new DesignationBO().showAllDesignation();
        DesignationCbview model2 = new DesignationCbview(lDesign);
        cbNameDesign.setModel(model2);
        Employees tmpE = ManageEmployee.getsEmp();
            cbNumberDept.setSelectedItem(tmpE.getDeptno());
            cbNameDesign.setSelectedItem(tmpE.getDesignation().getDesignation());
            cbRoleE.setSelectedItem(tmpE.getRole());
            txtIdE.setText((String) tmpE.getEmpid());
            txtNameE.setText((String) tmpE.getEname());
            txtUserE.setText((String) tmpE.getUsername());
            txtPassE.setText((String) tmpE.getPassword());
            txtAddressE.setText((String) tmpE.getAddress());
            txtPhoneE.setText((String) tmpE.getPhone());
            txtFaxE.setText((String) tmpE.getFax());
            txtEmailE.setText((String) tmpE.getEmail());
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pRegister = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        lbEUser = new javax.swing.JLabel();
        txtUserE = new javax.swing.JTextField();
        lbEPass = new javax.swing.JLabel();
        lbERole = new javax.swing.JLabel();
        btnEdit = new javax.swing.JButton();
        btnSave = new javax.swing.JButton();
        cbRoleE = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        txtPassE = new javax.swing.JPasswordField();
        txtIdE = new javax.swing.JTextField();
        lbDeptnum = new javax.swing.JLabel();
        lbEName = new javax.swing.JLabel();
        lbDesignName = new javax.swing.JLabel();
        lbSecName = new javax.swing.JLabel();
        cbNameSec = new javax.swing.JComboBox();
        cbNumberDept = new javax.swing.JComboBox();
        cbNameDesign = new javax.swing.JComboBox();
        txtNameE = new javax.swing.JTextField();
        lbEEmail = new javax.swing.JLabel();
        lbEFax = new javax.swing.JLabel();
        lbEPhone = new javax.swing.JLabel();
        lbEAddress = new javax.swing.JLabel();
        txtAddressE = new javax.swing.JTextField();
        txtPhoneE = new javax.swing.JTextField();
        txtFaxE = new javax.swing.JTextField();
        txtEmailE = new javax.swing.JTextField();
        txtflag = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        pRegister.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        pRegister.setDoubleBuffered(false);
        pRegister.setPreferredSize(new java.awt.Dimension(724, 433));

        jLabel1.setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Register  Account ");

        lbEUser.setText("UserName                  :");

        lbEPass.setText("Password                 :");

        lbERole.setText("Role                         :");

        btnEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/Button-Close-icon.png"))); // NOI18N
        btnEdit.setText("Cancel");
        btnEdit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEditActionPerformed(evt);
            }
        });

        btnSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/Floppy-Small-icon.png"))); // NOI18N
        btnSave.setText("Save");
        btnSave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSaveActionPerformed(evt);
            }
        });

        cbRoleE.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Admin", "HrManager", "Employee" }));
        cbRoleE.setToolTipText("");

        jLabel2.setFont(new java.awt.Font("Arial", 0, 8)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 0, 0));
        jLabel2.setText("Password have more than 6 charaters");

        lbDeptnum.setText("Department Number   :");

        lbEName.setText("Employee Name         :");

        lbDesignName.setText("Designation Name     :");

        lbSecName.setText("Section Name            :");

        cbNumberDept.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbNumberDeptActionPerformed(evt);
            }
        });

        lbEEmail.setText("Employee Email          :");

        lbEFax.setText("Employee Fax           :");

        lbEPhone.setText("Employee Phone        :");

        lbEAddress.setText("Employee Address    :");

        javax.swing.GroupLayout pRegisterLayout = new javax.swing.GroupLayout(pRegister);
        pRegister.setLayout(pRegisterLayout);
        pRegisterLayout.setHorizontalGroup(
            pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pRegisterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pRegisterLayout.createSequentialGroup()
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtIdE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(pRegisterLayout.createSequentialGroup()
                                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(lbDeptnum)
                                        .addComponent(lbSecName)
                                        .addComponent(lbDesignName, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(lbEName, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(lbEUser))
                                .addGap(18, 18, 18)
                                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(txtUserE)
                                    .addComponent(txtNameE)
                                    .addComponent(cbNameDesign, 0, 160, Short.MAX_VALUE)
                                    .addComponent(cbNumberDept, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(cbNameSec, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(34, 34, 34)
                                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(lbEPhone, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lbEAddress, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lbEFax, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lbEEmail, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lbEPass))
                                .addGap(18, 18, 18)
                                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(txtAddressE, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE)
                                        .addComponent(txtPhoneE, javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(txtFaxE, javax.swing.GroupLayout.Alignment.TRAILING)
                                        .addComponent(txtEmailE, javax.swing.GroupLayout.Alignment.TRAILING))
                                    .addComponent(txtPassE, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pRegisterLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(pRegisterLayout.createSequentialGroup()
                                .addComponent(btnSave, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(79, 79, 79)
                                .addComponent(btnEdit))
                            .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGroup(pRegisterLayout.createSequentialGroup()
                                    .addComponent(lbERole, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(18, 18, 18)
                                    .addComponent(cbRoleE, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(150, 150, 150))))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pRegisterLayout.createSequentialGroup()
                .addGap(0, 280, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addGap(221, 221, 221))
            .addGroup(pRegisterLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(txtflag, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pRegisterLayout.setVerticalGroup(
            pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pRegisterLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(jLabel1)
                .addGap(39, 39, 39)
                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pRegisterLayout.createSequentialGroup()
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbNumberDept, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbDeptnum))
                        .addGap(21, 21, 21)
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbNameSec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbSecName))
                        .addGap(21, 21, 21)
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbNameDesign, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbDesignName))
                        .addGap(18, 18, 18)
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtNameE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbEName)))
                    .addGroup(pRegisterLayout.createSequentialGroup()
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtAddressE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbEAddress))
                        .addGap(18, 18, 18)
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtPhoneE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbEPhone))
                        .addGap(18, 18, 18)
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtFaxE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbEFax))
                        .addGap(22, 22, 22)
                        .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtEmailE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbEEmail))))
                .addGap(18, 18, 18)
                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtUserE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lbEUser)
                        .addComponent(lbEPass)
                        .addComponent(txtPassE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cbRoleE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbERole))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                .addComponent(txtIdE, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(pRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnSave, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(16, 16, 16)
                .addComponent(txtflag, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 686, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(pRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 666, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 468, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pRegister, javax.swing.GroupLayout.PREFERRED_SIZE, 446, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed
        // TODO add your handling code here:
        setVisible(false);
    }//GEN-LAST:event_btnEditActionPerformed

    private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed

        try {
            EmployeeBO tmpEBO = new EmployeeBO();
            List<Sections> lSec = new SectionBO().showAllSections(cbNumberDept.getSelectedItem());
            txtflag.setText(lSec.size() + "");
            tmpEBO.editEmployee(
                cbNumberDept.getSelectedItem(),
                cbNameSec.getSelectedItem(),
                cbNameDesign.getSelectedItem(),
                txtNameE.getText(),
                txtUserE.getText(),
                txtPassE.getPassword(),
                cbRoleE.getSelectedItem(),
                txtAddressE.getText(),
                txtPhoneE.getText(),
                txtFaxE.getText(),
                txtEmailE.getText(),
                txtIdE.getText(),
                txtflag.getText());
            JOptionPane.showMessageDialog(this, tmpEBO.getSuccess());
            setVisible(false);
            

        } catch (Error ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
        }

    }//GEN-LAST:event_btnSaveActionPerformed

    private void cbNumberDeptActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbNumberDeptActionPerformed
        // TODO add your handling code here:
        // show All Sections by dept
        List<Sections> lSec = new SectionBO().showAllSections(cbNumberDept.getSelectedItem());
        txtflag.setText(lSec.size() + "");
        SectionCbView model2 = new SectionCbView(lSec);
        cbNameSec.setModel(model2);
    }//GEN-LAST:event_cbNumberDeptActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(EmployeeDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(EmployeeDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(EmployeeDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(EmployeeDialog.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the dialog */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                EmployeeDialog dialog = new EmployeeDialog(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnEdit;
    private javax.swing.JButton btnSave;
    private javax.swing.JComboBox cbNameDesign;
    private javax.swing.JComboBox cbNameSec;
    private javax.swing.JComboBox cbNumberDept;
    private javax.swing.JComboBox cbRoleE;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel lbDeptnum;
    private javax.swing.JLabel lbDesignName;
    private javax.swing.JLabel lbEAddress;
    private javax.swing.JLabel lbEEmail;
    private javax.swing.JLabel lbEFax;
    private javax.swing.JLabel lbEName;
    private javax.swing.JLabel lbEPass;
    private javax.swing.JLabel lbEPhone;
    private javax.swing.JLabel lbERole;
    private javax.swing.JLabel lbEUser;
    private javax.swing.JLabel lbSecName;
    private javax.swing.JPanel pRegister;
    private javax.swing.JTextField txtAddressE;
    private javax.swing.JTextField txtEmailE;
    private javax.swing.JTextField txtFaxE;
    private javax.swing.JTextField txtIdE;
    private javax.swing.JTextField txtNameE;
    private javax.swing.JPasswordField txtPassE;
    private javax.swing.JTextField txtPhoneE;
    private javax.swing.JTextField txtUserE;
    private javax.swing.JTextField txtflag;
    // End of variables declaration//GEN-END:variables
}
